﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace AMS.UI.Forms
{
    /// <summary>
    /// 用于编辑实体的对话框
    /// </summary>
    /// <typeparam name="TModel"></typeparam>
    public interface IEditDialog<TModel>
    {
        /// <summary>
        /// 编辑实体
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        DialogResult EditModel(TModel model);
        /// <summary>
        /// 创建实体
        /// </summary>
        /// <returns></returns>
        DialogResult NewModel();
    }
}
